<template>
	<!--添加新地址页面-->
	<!--右侧-->
	<div class="bigb">

		<!--右侧栏-->

		<!--**********内容*********-->
		<div class="z_shopping_content">
			<h4>添加新地址</h4>
			<table>

				<tr>
					<td>
						<span>*</span>收货人姓名:
					</td>
					<td>
						<input type="text" placeholder="收货人姓名">
					</td>
				</tr>

				<tr>
					<td><span>*</span>所在地区:</td>
					<td>
						<div class="z_select">
							<VDistpicker></VDistpicker>
						</div>
					</td>

				</tr>
				<tr>
					<td><span>*</span>详细地址:</td>
					<td><input type="text" placeholder="用于接收货物的详细地址"></td>
				</tr>

				<tr>
					<td><span>*</span>联系电话:</td>
					<td>
						<input type="text" placeholder="推荐使用手机号">
						<em>或固定电话:</em>
						<input type="text" placeholder="电话号码">
					</td>
				</tr>

				<tr>
					<td></td>
					<td>
						<input type="checkbox">
						<i>设为常用地址</i>
					</td>
				</tr>

				<tr>
					<td></td>
					<td>
						<button @click="save()">保存</button>
					</td>
				</tr>

			</table>
		</div>

	</div>
</template>

<script>
	import VDistpicker from 'v-distpicker'

	export default {
		data(){
			return{
				flag:true
			}
		},
		methods:{
          ensureCity(){
            this.$emit("ensureCity",true)
          },
          clickNew1:function(){
              this.flag=false;
          },
          clickNew2:function(){
            this.flag=false;
          },
        },
		components: {
			VDistpicker
		}
	}
</script>

<style>
	/*右侧框*/
	
	.z_shopping_content {
		position: absolute;
		top: 0px;
		right: 0;
		width: 1085px;
		height: 625px;
		border: solid 1px #e7e7e7;
		
	}
	/**********/
	
	.z_shopping_content h4 {
		border-bottom: 1px solid #ddd;
		line-height: 60px;
		font-size: 18px;
		color: #666;
		font-weight: 400;
		padding-left: 21px;
	}
	
	/*大框*/
	.z_shopping_content table {
		margin-left: 30px;
		margin-top: 41px;


		
	}
	/*左边收货人栏*/
	.z_shopping_content table tr td:nth-child(1) {
		text-align: right;

		
	}
	/*右边收货人栏*/
	.z_shopping_content table tr td:nth-child(2) {
		padding-left: 10px;

		
	}
	/*星星*/
	.z_shopping_content table tr td span {
		color: #f99e6e;
		padding-right: 5px;

		
	}
	
	.z_shopping_content table tr td {
		font-size: 18px;
		color: #555;
		padding-bottom: 20px;

		
	}
	
	.z_shopping_content table tr:nth-child(5) td {
		padding-bottom: 0px;

		

	}
	
	.z_shopping_content table tr:nth-child(1) td input {
		width: 170px;
		height: 32px;

		
	}
	
	.z_shopping_content table tr:nth-child(2) td select {
		width: 140px;
		height: 35px;
		display: inline-block;
		margin-right: 20px;
	}
	
	.z_shopping_content table tr:nth-child(3) td input {
		width: 170px;
		height: 32px;
	}
	
	.z_shopping_content table tr:nth-child(4) input:nth-child(1) {
		height: 32px;
		width: 200px;
		
	}
	
	.z_shopping_content table tr:nth-child(4) em {
		font-size: 16px;
		font-style: normal;
		font-weight: 200;
		color: black;
	}
	
	.z_shopping_content table tr:nth-child(4) input:nth-child(3) {
		width: 170px;
		height: 32px;
	}
	
	.z_shopping_content table tr:nth-child(5) i {
		font-style: normal;
		width: 114px;
		height: 16px;
		font-size: 16px;
		line-height: 16px;
		color: #333333;
	}
	
	.z_shopping_content table tr:nth-child(5) input {
		padding: 5px;
		border-radius: 10px;
	}
	
	.z_shopping_content table tr:nth-child(6) button {
		width: 150px;
		height: 50px;
		border: none;
		outline: none;
		border-radius: 5px;
		background: #f08200;
		color: white;
		font-size: 16px;
		display: inline-block;
		margin-top: 40px;
		margin-bottom: 10px;
	}
</style>